package com.caregiver.watch.business.user.model.dto;

import lombok.Data;

/**
 * @Description: AccessToken
 * @Author 疆戟
 * @Date 2025/8/15 0:43
 * @Version 1.0
 */
@Data
public class AccessToken {

    /**
     * 访问令牌
     */
    private String accessToken;
    /**
     * 令牌有效期（秒）
     */
    private Long expiresIn;


    public static AccessToken create(String accessToken, Long expiresIn) {
        AccessToken result = new AccessToken();
        result.accessToken = accessToken;
        result.expiresIn = expiresIn;
        return result;
    }
}
